import java.util.Scanner;
public class old_eq {
    public static int lib(int num, int den) {
        int ratio;  /* 10 times the compression ratio */

        if (den == 0) {
            ratio = 0; // no compression
        } else if (den < 32) {
            ratio = 10 * num / den;
        } else {
            ratio = num / (den / 10);
        }
        if (ratio < 0) {
            ratio = -ratio;
        }
        return ratio / 10;
    }
}
